<template>
    <div>
      <div>
        id:{{ route.query.id }}
      </div>
      <div>
        title: {{ route.query.title }}
      </div>
    </div>
  </template>
  
  <script lang="ts" setup name="News">
        import { useRoute } from 'vue-router'
        const route = useRoute();
        console.log(route.query.id)
        console.log(route.query.title)

        
        const param = route.params
        console.log('param', param)
        
  </script>

  <style>
  /* 页面样式 */
  </style>
  